Skip to content

feat: 상품 목록 응답에 brandId 추가 및 랜덤 카테고리 기본 개수 변경#156

Merged
kangcheolung merged 1 commit intodevelopfrom
feature/155
Feb 19, 2026
Merged

feat: 상품 목록 응답에 brandId 추가 및 랜덤 카테고리 기본 개수 변경#156
kangcheolung merged 1 commit intodevelopfrom
feature/155

Conversation

@kangcheolung
Copy link
Copy Markdown
Member

@kangcheolung kangcheolung commented Feb 19, 2026

🔍️ 작업 내용

  • Closes #

✨ 상세 설명

  • ProductSimpleResponse에 brandId 필드 추가
  • ProductConverter.toSimpleResponse()에 brandId 매핑 추가
  • GET /categories/random 기본 개수 8 → 4 변경

🛠️ 추후 리팩토링 및 고도화 계획

📸 스크린샷 (선택)

💬 리뷰 요구사항

Summary by CodeRabbit

  • New Features

    • 상품 조회 응답에 브랜드 ID 정보 필드 추가
  • Chores

    • 무작위 카테고리 조회 기본 반환 개수 조정 (8개 → 4개)

- ProductSimpleResponse에 brandId 필드 추가
- ProductConverter.toSimpleResponse()에 brandId 매핑 추가
- GET /categories/random 기본 개수 8 → 4 변경

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kangcheolung kangcheolung merged commit 38907e5 into develop Feb 19, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 19, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

카테고리 컨트롤러의 기본 요청 파라미터 값을 8에서 4로 변경하고, 제품 응답 DTO에 brandId 필드를 추가하여 ProductConverter에서 해당 값을 설정합니다.

Changes

Cohort / File(s) Summary
Category Controller
src/main/java/com/ongil/backend/domain/category/controller/CategoryController.java
getRandomCategories 메서드의 count 파라미터 기본값을 8에서 4로 변경. 검증 제약사항(@Min(1), @Max(100))은 유지.
Product Response & Conversion
src/main/java/com/ongil/backend/domain/product/dto/response/ProductSimpleResponse.java, src/main/java/com/ongil/backend/domain/product/converter/ProductConverter.java
ProductSimpleResponse에 brandId 필드 추가 및 @Schema 어노테이션 적용. ProductConverter의 toSimpleResponse에서 product.getBrand().getId() 값으로 설정.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • PR #76: ProductSimpleResponse에 추가된 brandId 필드가 BrandRecommendResponse 및 상품 구성 로직에 영향을 미침
  • PR #27: CategoryController의 getRandomCategories 파라미터 기본값 변경(8 → 4) 내용이 연관됨
  • PR #19: 브랜드 상품 엔드포인트에서 사용되는 ProductSimpleResponse의 brandId 필드 설정 로직과 관련

Suggested labels

✨ Feature

✨ Finishing Touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/155

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant